import { IMapper } from "./mapper";

// 镜像
enum Mirror {
    // PPU
    HORIZONTAL,
    VERTICAL,

    FOUR_SCREEN,
    SINGLE_SCREEN_LOWER_BANK,
    SINGLE_SCREEN_UPPER_BANK
}


interface IROMInfo {
    prg:number; //16kb的prg的数目
    chr:number; //8kb的chr的数目 
    mapper:number; //mapper编号
    mirror:Mirror; //镜像配置
    hasBatteryBacked:boolean; //是否有电池
    isTrained:boolean;//是否有其他内容
}

interface ICartridge{
    // ROM配置
    readonly info:IROMInfo;
    //Mapper接口
    readonly mapper:IMapper;
}

export {
    Mirror,
    IROMInfo,
    ICartridge
}